package com.dap.cms.governance.po;

import com.dap.dao.BasePo;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;


/**
 * @description: t_cms_user表对应的实体类
 * @author: Fesine
 * @createTime:2018/08/20
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2018/08/20
 */
public class CmsUserPo extends BasePo {
    private static final long serialVersionUID = 1L;
    /**
     * alias
     */
    public static final String TABLE_ALIAS = "CmsUser";
    public static final String ALIAS_ID = "主键";
    public static final String ALIAS_COMPANY_ID = "companyId";
    public static final String ALIAS_SYS_ID = "公司系统分组id";
    public static final String ALIAS_NAME = "用户姓名";
    public static final String ALIAS_USER_FLAG = "人员角色：0 普通开发者 1组件接入者 2系统负责人";
    public static final String ALIAS_TELEPHONE = "联系电话";


    //columns START
    /**
     * 主键       db_column: id
     */
    private Integer id;
    /**
     * companyId       db_column: company_id
     */
    @NotNull(message = "参数companyId不能为空")
    private Integer companyId;
    /**
     * 公司系统分组id       db_column: sys_id
     */
    @NotNull(message = "参数sysId不能为空")
    private Integer sysId;
    /**
     * 用户姓名（加入唯一索引）       db_column: name
     */
    @NotBlank(message = "参数name不能为空")
    private String name;
    /**
     * 人员角色：0 普通开发者 1组件接入者 2系统负责人       db_column: user_flag
     */
    @NotNull(message = "参数userFlag不能为空")
    private Integer userFlag;
    /**
     * 联系电话       db_column: telephone
     */
    @NotBlank(message = "参数telephone不能为空")
    private String telephone;
    //columns END


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getCompanyId() {
        return this.companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }


    public Integer getSysId() {
        return this.sysId;
    }

    public void setSysId(Integer sysId) {
        this.sysId = sysId;
    }


    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public Integer getUserFlag() {
        return this.userFlag;
    }

    public void setUserFlag(Integer userFlag) {
        this.userFlag = userFlag;
    }

    public String getTelephone() {
        return this.telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }


}

